package com.liang.threaddemo4;

public class Demo {
    public static void main(String[] args) {
        MyThread1 mt1 = new MyThread1();
        MyThread2 mt2 = new MyThread2();

        mt1.setName("女神");
        mt2.setName("备胎");

        mt1.setPriority(10);
        mt2.setPriority(1);

        mt2.setDaemon(true);

        mt1.start();
        mt2.start();
    }
}
